import request from '@/utils/request'

export function datum_index(params) {
  return request({
    url: '/datum/index',
    method: 'get',
    params
  })
}

export function datum_add(data) {
  return request({
    url: '/datum/add',
    method: 'post',
    data:data
  })
}

export function datum_edit(data) {
  return request({
    url: '/datum/edit',
    method: 'post',
    data:data
  })
}

export function datum_softDelete(data) {
  return request({
    url: '/datum/softDelete',
    method: 'post',
    data:data
  })
}

export function datum_list(params) {
  return request({
    url: '/datum/list',
    method: 'get',
    params
  })
}

export function datum_use(data) {
  return request({
    url: '/datum/use',
    method: 'post',
    data:data
  })
}

export function datum_delete(data) {
  return request({
    url: '/datum/delete',
    method: 'post',
    data:data
  })
}